net/http.headerSorter.kvs (field)
12 uses
net/http (current package)
header.go#L159: kvs []keyValues
header.go#L162: func (s *headerSorter) Len() int { return len(s.kvs) }
header.go#L163: func (s *headerSorter) Swap(i, j int) { s.kvs[i], s.kvs[j] = s.kvs[j], s.kvs[i] }
header.go#L164: func (s *headerSorter) Less(i, j int) bool { return s.kvs[i].key < s.kvs[j].key }
header.go#L175: if cap(hs.kvs) < len(h) {
header.go#L176: hs.kvs = make([]keyValues, 0, len(h))
header.go#L178: kvs = hs.kvs[:0]
header.go#L184: hs.kvs = kvs
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |